package router

import (
	"api_gateway/handler/api"
	"github.com/gin-gonic/gin"
)

func UserRouter(router *gin.RouterGroup) {
	{
		user := router.Group("user")
		{
			user.POST("register", api.Register)
			user.POST("login", api.Login)
			user.POST("addVote", api.AddVote)
			user.POST("listVote", api.ListVote)
			user.POST("infoVote", api.InfoVote)
		}
	}
}
